package com.example.personalizededucationsystem.repository;

import com.example.personalizededucationsystem.model.Class;
import org.springframework.data.jpa.repository.JpaRepository;

import java.util.List;
import java.util.Optional;

public interface ClassRepository extends JpaRepository<Class, Long> {

    List<Class> findByTeacherUserId(Long teacherId);

    Optional<Class> findByInvitationCode(String invitationCode);
}